package ytdp.careagle.com.ytdp.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import java.util.HashMap;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
import ytdp.careagle.com.ytdp.R;
import ytdp.careagle.com.ytdp.app.G;
import ytdp.careagle.com.ytdp.net.MyObserver;
import ytdp.careagle.com.ytdp.net.NetWorks;
import ytdp.careagle.com.ytdp.net.Result;
import ytdp.careagle.com.ytdp.utils.RxPromisUtils;

public class MainActivity extends BaseActivity {

    @Bind(R.id.iv_toolbar_back)
    ImageView ivToolbarBack;
    @Bind(R.id.tv_toolbar_back)
    TextView tvToolbarBack;
    @Bind(R.id.tv_toolbar_title)
    TextView tvToolbarTitle;
    @Bind(R.id.tv_toolbar_right)
    TextView tvToolbarRight;
    @Bind(R.id.iv_toolbar_right)
    ImageView ivToolbarRight;
    @Bind(R.id.base_toolbar)
    Toolbar baseToolbar;
    @Bind(R.id.tv)
    TextView tv;

    @Override
    public int getLayoutId() {
        return R.layout.activity_main;
    }

    @Override
    public void initView() {
        initToolbar("运通大屏");

    }

    @OnClick({R.id.tv, R.id.tv_toolbar_title})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.tv:
                getOperation().forward(CarEvaluateQueryActivity.class);
//                getOperation().forward(EvaluateQueryActivity.class);
//                new RxPromisUtils().cameraPromis(this, new Intent(this, TestActivity.class));
                break;
            case R.id.tv_toolbar_title:
//                getOperation().forward(FinancialProgramActivity.class);
                getOperation().forward(TestActivity.class);
//                new RxPromisUtils().cameraPromis(this, new Intent(this, TestActivity.class));
                break;

        }
    }
}
